<template>
    <div class="body">
        <div class="floor my p setting">
            <div class="content">
                <div class="floor list7">
                    <div class="myorder p">
                        <div class="content30">
                            <a @click="$router.push('/usersetting')">
                                <div class="order">
                                    <div class="fl">
                                        <span>个人资料设置</span>
                                    </div>
                                    <div class="fr">
                                        <i class="Mright"></i>
                                    </div>
                                </div>
                            </a>
                        </div>
                    </div>

                    <div class="myorder p">
                        <div class="content30">
                            <a @click="$router.push('/address_list')">
                                <div class="order">
                                    <div class="fl">
                                        <span>收货地址</span>
                                    </div>
                                    <div class="fr">
                                        <i class="Mright"></i>
                                    </div>
                                </div>
                            </a>
                        </div>
                    </div>

                    <div class="myorder p">
                        <div
                            class="content30"
                            @click="$router.push('/message')"
                        >
                            <a>
                                <div class="order">
                                    <div class="fl">
                                        <span>消息提醒</span>
                                    </div>
                                    <div class="fr">
                                        <i class="Mright"></i>
                                    </div>
                                </div>
                            </a>
                        </div>
                    </div>

                    <div class="myorder p">
                        <div class="content30" @click="$router.push('/coupon')">
                            <a>
                                <div class="order">
                                    <div class="fl">
                                        <span>我的优惠券</span>
                                    </div>
                                    <div class="fr">
                                        <i class="Mright"></i>
                                    </div>
                                </div>
                            </a>
                        </div>
                    </div>

                    <div class="myorder p">
                        <div class="content30" @click="$router.push('/paypwd')">
                            <a>
                                <div class="order">
                                    <div class="fl">
                                        <span>支付密码</span>
                                    </div>
                                    <div class="fr">
                                        <i class="Mright"></i>
                                    </div>
                                </div>
                            </a>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <div class="floor my p setting">
            <div class="content">
                <div class="floor list7">
                    <div class="myorder p">
                        <div class="content30">
                            <a @click="$router.push('/about')">
                                <div class="order">
                                    <div class="fl">
                                        <span>关于我们</span>
                                    </div>
                                    <div class="fr">
                                        <i class="Mright"></i>
                                    </div>
                                </div>
                            </a>
                        </div>
                    </div>

                    <div class="myorder p">
                        <div class="content30">
                            <a @click="$router.push('/Privacy')">
                                <div class="order">
                                    <div class="fl">
                                        <span>隐私政策</span>
                                    </div>
                                    <div class="fr">
                                        <i class="Mright"></i>
                                    </div>
                                </div>
                            </a>
                        </div>
                    </div>

                    <div class="myorder p">
                        <div class="content30">
                            <a>
                                <div class="order">
                                    <div class="fl">
                                        <span>清除缓存</span>
                                    </div>
                                    <div class="fr">
                                        <i class="Mright"></i>
                                    </div>
                                </div>
                            </a>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <div class="close" style="margin-top: 0.4267rem">
            <a class="logout" id="logout" @click="logoutfn()">退出登录</a>
        </div>
        <div class="zhanwei"></div>
    </div>
</template>

<script>
import { axiosPost } from '../../axios';
import { Toast } from 'vant';
export default {
    name: '',
    data() {
        return {};
    },
    computed: {},
    mounted() {},
    methods: {
        logoutfn() {
            axiosPost('/api/user/logout', {}, (res) => {
                // console.log(res);
                Toast({
                    message: res.msg,
                    duration: 2000,
                });
                if (res.status != 1) {
                    return;
                }
                localStorage.removeItem('userinfo');
                this.$router.push('/');
            });
        },
    },
};
</script>

<style lang="less" scope>
.list7 .myorder .fr i {
    margin-top: 0.73rem !important;
}

.my {
    width: 15.1467rem;
    margin: 0.4267rem auto 0;
    border-radius: 0.4267rem;
}

.myorder a {
    color: #232326;
}

.logout {
    width: 15.1467rem;
    margin: 0 auto 3rem;
    border-radius: 0.4267rem;
    height: 2.13333rem;
    line-height: 2.13333rem;
    display: block;
    background: #ffffff;
    font-size: 0.59733rem;
    font-weight: 400;
    color: #000000;
    text-align: center;
    cursor: pointer;
}

.myorder .order {
    overflow: hidden;
    border-bottom: 0;
}
</style>
